package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.ManagerMapper;
import com.shunbo.convenient.service.ManagerService;
import com.shunbo.convenient.vo.Manager;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class ManagerServiceImpl implements ManagerService {

    @Resource
    private ManagerMapper managerMapper;

    @Override
    public Integer save(Manager obj) {
        return managerMapper.save(obj);
    }

    @Override
    public Integer update(Manager obj) {
        return managerMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return managerMapper.delete(obj);
    }

    @Override
    public Manager findById(String obj) {
        return managerMapper.findById(obj);
    }

    @Override
    public List<Manager> findAll(Manager obj) {
        return managerMapper.findAll(obj);
    }
}
